binary tree interview question